<?php
session_start();
if (isset($_POST['submitDelete'])) {
$id = $_POST['idAgenda'];

include 'DBLibrary/config.php';
include 'DBLibrary/openDB.php';

    mysql_select_db("rotaract");
    $query="DELETE FROM agenda WHERE id = '$id'";
    $result = mysql_query($query) or die(mysql_error());;

    $confirm = 'Delete successful!';

mysql_close($conn);
}

?>

